home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Buzz 5
/
Buzz 5.adf
/
Buzz Installer
next >
Wrap
Text File
|
1994-12-28
|
3KB
|
143 lines
; $VER: Defiance: Buzz Issue 5 26/12/94
; Installer Revision 2 14/11/94
; Copyright (C) Defiance
; ### VARIABLES
;** The amount of space needed on the hard disk to install
(set EssentialHDSpace 1)
; ### INSTALL DISK NAMES
(set #DocDefaultTool "Buzz")
(set #Install1Disk "Buzz_5")
(set #ProgName
(cat "Buzz"
))
(set #HardDiskWorkingMsg
(cat "\n\n\n\nPlease wait...\n\n" #ProgName " is being installed to your hard disk."
))
(set #NoDiskSpaceMsg1
(cat "\n\n\n\nThere is insufficient available space on your hard disk to install "
#ProgName ". You will need a minimum of "
))
(set #NoDiskSpaceMsg2
(cat "MB of free disk space.\n\nEither click \"Abort Install\" to exit this "
"installation and delete some files from your hard disk, or click \"Proceed\" and try a "
"different partition."
))
(set #HardDiskDestChoiceMsg
(cat "Where do you want to install " #ProgName "?"
))
(set #HardDiskDestChoiceHelp
(cat "Select the drawer where you want to install " #ProgName ", then click Proceed."
))
(set #Welcome
(cat "\n\n\n\nWelcome to the " #ProgName " installer.\n\n"
"Copyright (C) 1994 Defiance.\n\n\n\n"
"Buzz was written by Slaze/Defiance! "
))
(set #InsertDiskMsg
(cat "\n\n\n\n\nPlease insert the disk labelled\n\n"
))
(set #diskhelp
(cat "\nIf you know that the correct disk is in the drive, but you still cannot proceed, "
"then the name of the disk is incorrect.\n"
"Ensure that the disk name is not preceded by 'copy_of_', or blank spaces before or after the disk name.\n\n\n" @askdisk-help
)
)
; ### PROCEDURE DEFINITIONS
;** routine to get disk specified in '#FileSourceDisk'
(procedure @GetDisk
(
(askdisk
(prompt #InsertDiskMsg #FileSourceDisk)
(help #diskhelp)
(dest #FileSourceDisk)
)
)
)
;** Procedure to choose the hard disk destination
(procedure @FindHDDest
(
(@ChooseHDDest)
(while (< (getdiskspace #DestDrawer) HDSpaceNeededBytes)
(
(if (< (getdiskspace #DestDrawer) HDSpaceNeededBytes)
(
(if (= @user-level 0)
(
(user 2)
(set #UserNovice 1)
)
)
(message #NoDiskSpaceMsg1 (/ (/ HDSpaceNeededBytes 512) 512) #NoDiskSpaceMsg2)
(@ChooseHDDest)
)
)
)
) ;end while
(if (= #UserNovice 1)
(
(user 0)
)
)
))
(procedure @ChooseHDDest
(
;** Find default drawer
(set #DefaultDest (getassign "Work" "d"))
(if (= #DefaultDest "")
(
(set #DefaultDest (getassign "SYS:" "d"))
)
)
;** Ask for destination
(set #DestDrawer
(askdir
(prompt #HardDiskDestChoiceMsg)
(help #HardDiskDestChoiceHelp)
(default #DefaultDest)
)
)
))
(welcome)
(message #Welcome)
(set #DestDrawer "")
(set HDSpaceNeededBytes (+ (* (* EssentialHDSpace 512) 512) TotalSpace))
(@FindHDDest) ;ask for destination drawer
(set #FileSourceDisk #Install1Disk)
(@GetDisk)
(working #HardDiskWorkingMsg)
(copyfiles
(source (cat #Install1Disk ":Libs"))
(dest (cat #DestDrawer ))
(pattern "PowerPacker.library")
(optional "force")
)
(copyfiles
(source (cat #Install1Disk ":"))
(dest (cat #DestDrawer ))
(pattern "Type")
(optional "force")
)
(copyfiles
(source (cat #Install1Disk ":"))
(dest (cat #DestDrawer ))
(pattern "IconX")
(optional "force")
)
(copyfiles
(source (cat #Install1Disk ":"))
(dest (cat #DestDrawer ))
(pattern "*.*")
(optional "force")
)
(rename (cat #DestDrawer "/Buzz.hd") (cat #DestDrawer "/Buzz"))
(delete (cat #DestDrawer "/Install Buzz.info") (cat #DestDrawer "/Disk.info"))
(complete 100)